package com.ngds.library.downloadcenter;

import android.database.ContentObserver;
import android.os.Handler;

/**
 * DownloadChangeObserver
 *
 * @author:lix Date :13-8-8
 */
public abstract class DownloadChangeObserver extends ContentObserver {
    public DownloadChangeObserver(Handler handler) {
        super(handler);
    }

    @Override
    public void onChange(boolean selfChange) {
        super.onChange(selfChange);
        updateView(selfChange);
    }

    protected abstract void updateView(boolean selfChange);
}
